//k1 edit 21.12.23

private ["_center","_rotation","_obj","_staticWeaponClasses","_parkedVehicleClasses"];
_center = param[0];
_rotation = param[1];

_staticWeaponClasses = if(count _this > 2)then [{_this select 2},{[]}];
_parkedVehicleClasses = if(count _this > 3)then[{_this select 3},{[]}];

if (isNil "a3e_var_artillery_units") then {a3e_var_artillery_units = []};

[_center,45] call a3e_fnc_cleanupTerrain; //清除半径内场地

_fnc_createObject = {
    params ["_className","_centerPos","_relativePos","_rotateDir","_relativeDir"];
    private ["_object", "_realPos", "_realDir"];

    _fnc_rotatePos = {
        private ["_centerPos", "_pos", "_dir"];
        private ["_px", "_py", "_mpx", "_mpy", "_ma", "_rpx", "_rpy"];
        _centerPos = _this select 0;
        _pos = _this select 1;
        _dir = _this select 2;
        _px = _pos select 0;
        _py = _pos select 1;
        _mpx = _centerPos select 0;
        _mpy = _centerPos select 1;
        _ma = _dir;
        _rpx = ( (_px - _mpx) * cos(_ma) ) + ( (_py - _mpy) * sin(_ma) ) + _mpx;
        _rpy = (-(_px - _mpx) * sin(_ma) ) + ( (_py - _mpy) * cos(_ma) ) + _mpy;
        [_rpx, _rpy, (_pos select 2)];
    };

    _realPos = ([_centerPos, [(_centerPos select 0) + (_relativePos select 0), (_centerPos select 1) + (_relativePos select 1),(_relativePos select 2)], _rotateDir] call _fnc_rotatePos);
    _object = createVehicle [_className, _realPos, [], 0, "CAN_COLLIDE"];
    _object setdir (_relativeDir + _rotateDir);
    _object setPosATL _realPos;
    _object
};

_obj = ['Land_Mil_WallBig_4m_F',_center,[-17.6,-25.4,0],_rotation,0] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[-23.3,-11.9,0],_rotation,90] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[-23.3,-23.7,0],_rotation,90] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[-23.3,-19.7,0],_rotation,90] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[-23.3,-8,0],_rotation,90] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[-23.3,-15.8,0],_rotation,90] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[-23.4,-4.2,0],_rotation,90] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[-21.5,-25.4,0],_rotation,0] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[-23.4,3.6,0],_rotation,90] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[-18.1,21.1,0],_rotation,0] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[-23.4,15.3,0],_rotation,90] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[-23.4,19.1,0],_rotation,90] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[-23.3,11.4,0],_rotation,90] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[-23.4,-0.3,0],_rotation,90] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[-22,21.1,0],_rotation,0] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[-23.3,7.5,0],_rotation,90] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[9.6,-25.3,0],_rotation,0] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[-3.3,-12.6,0],_rotation,1] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[-12.7,-6.6,0],_rotation,91] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[10.5,-7,0],_rotation,89] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[-9.8,-25.3,0],_rotation,0] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[-13.7,-25.3,0],_rotation,0] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[-11,-12.5,0],_rotation,1] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[10.5,-11,0],_rotation,89] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[13.5,-25.3,0],_rotation,0] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[-12.8,-10.6,0],_rotation,91] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[8.5,-12.8,0],_rotation,1] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[4.5,-12.8,0],_rotation,1] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[-7.2,-12.6,0],_rotation,1] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[-6.4,21.1,0],_rotation,0] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[10.5,-3.1,0],_rotation,89] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[-2.5,21.1,0],_rotation,0] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[-11.4,10.5,0],_rotation,0] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[8,10.5,0],_rotation,0] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[1.3,21.1,0],_rotation,0] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[-7.6,10.5,0],_rotation,0] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[-12.6,-2.7,0],_rotation,91] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[-10.4,21.2,0],_rotation,0] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[-12.5,1.2,0],_rotation,91] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[10.3,8.5,0],_rotation,89] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[13,21.2,0],_rotation,0] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[4.1,10.5,0],_rotation,0] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[-12.5,5.1,0],_rotation,91] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[-12.5,8.9,0],_rotation,91] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[-14.2,21.2,0],_rotation,0] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[10.5,0.7,0],_rotation,89] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[5.2,21.1,0],_rotation,0] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[9.1,21.2,0],_rotation,0] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[10.4,4.6,0],_rotation,89] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[22.6,-11.9,0],_rotation,269] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[21.4,-25.4,0],_rotation,0] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[22.8,-19.7,0],_rotation,269] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[17.4,-25.4,0],_rotation,0] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[22.7,-8,0],_rotation,269] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[22.6,-4,0],_rotation,269] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[22.9,-23.5,0],_rotation,269] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[22.7,-15.8,0],_rotation,269] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[22.6,-0.2,0],_rotation,269] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[20.8,21.1,0],_rotation,0] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[22.5,3.7,0],_rotation,269] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[22.3,15.4,0],_rotation,269] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[22.3,7.6,0],_rotation,269] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[22.2,19.3,0],_rotation,269] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[16.9,21.1,0],_rotation,0] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_Mil_WallBig_4m_F',_center,[22.3,11.4,0],_rotation,269] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Land_ConcreteHedgehog_01_F',_center,[-17.6,-37.2,0],_rotation,249] call _fnc_createObject;
_obj = ['Land_Bunker_01_tall_F',_center,[-19.4,-21.3,0],_rotation,44] call _fnc_createObject;
_obj = ['Land_ConcreteHedgehog_01_F',_center,[-24.1,-29.6,0],_rotation,342] call _fnc_createObject;
_obj = ['Land_ConcreteHedgehog_01_F',_center,[-19.7,-35.6,0],_rotation,219] call _fnc_createObject;
_obj = ['Land_ConcreteHedgehog_01_F',_center,[-21.2,-33.7,0],_rotation,110] call _fnc_createObject;
_obj = ['Land_ConcreteHedgehog_01_F',_center,[-22.7,-31.8,0],_rotation,198] call _fnc_createObject;
_obj = ['Land_ConcreteHedgehog_01_F',_center,[-24.7,-27.2,0],_rotation,325] call _fnc_createObject;
_obj = ['Land_Razorwire_F',_center,[-20.6,-30.6,0],_rotation,227] call _fnc_createObject;
_obj = ['Land_Bunker_01_tall_F',_center,[-19.4,16.8,0],_rotation,134] call _fnc_createObject;
_obj = ['Land_Cargo_Patrol_V1_F',_center,[-20.1,-2.7,0],_rotation,91] call _fnc_createObject;
_obj = ['Land_ConcreteHedgehog_01_F',_center,[-13.3,-40.2,0],_rotation,36] call _fnc_createObject;
_obj = ['Land_ConcreteHedgehog_01_F',_center,[-11.1,-41.5,0],_rotation,167] call _fnc_createObject;
_obj = ['Land_ConcreteHedgehog_01_F',_center,[10.1,-42.1,0],_rotation,22] call _fnc_createObject;
_obj = ['Land_ConcreteHedgehog_01_F',_center,[-15.5,-38.7,0],_rotation,287] call _fnc_createObject;
_obj = ['Land_ConcreteHedgehog_01_F',_center,[4.3,-44.4,0],_rotation,116] call _fnc_createObject;
_obj = ['Land_ConcreteHedgehog_01_F',_center,[13.9,-40,0],_rotation,308] call _fnc_createObject;
_obj = ['Land_ConcreteHedgehog_01_F',_center,[7.3,-43.6,0],_rotation,330] call _fnc_createObject;
_obj = ['Land_ConcreteHedgehog_01_F',_center,[12.1,-41.2,0],_rotation,159] call _fnc_createObject;
_obj = ['Land_ConcreteHedgehog_01_F',_center,[-8.9,-42.6,0],_rotation,295] call _fnc_createObject;
_obj = ['Land_ConcreteHedgehog_01_F',_center,[-6.7,-43.9,0],_rotation,198] call _fnc_createObject;
_obj = ['Land_Razorwire_F',_center,[-8,-40,0],_rotation,24] call _fnc_createObject;
_obj = ['Land_Razorwire_F',_center,[14.8,-35.7,0],_rotation,330] call _fnc_createObject;
_obj = ['Land_Razorwire_F',_center,[-14.4,-36.2,0],_rotation,42] call _fnc_createObject;
_obj = ['Land_Razorwire_F',_center,[7.6,-40,0],_rotation,154] call _fnc_createObject;
_obj = ['Land_BagBunker_Small_F',_center,[11.9,-28.1,0],_rotation,326] call _fnc_createObject;
_obj = ['Land_BagBunker_Small_F',_center,[-14,-28.4,0],_rotation,51] call _fnc_createObject;
_obj = ['Land_LampAirport_F',_center,[12.5,-24.1,0],_rotation,0] call _fnc_createObject;
_obj = ['Land_LampAirport_F',_center,[-14.7,-24.3,0],_rotation,0] call _fnc_createObject;
_obj = ['Land_BarGate_F',_center,[-1.3,-31.7,0],_rotation,0] call _fnc_createObject;
_obj = ['Land_Bunker_01_small_F',_center,[4.9,-27.6,0],_rotation,0] call _fnc_createObject;
_obj = ['Land_Bunker_01_small_F',_center,[-7.9,-27.6,0],_rotation,0] call _fnc_createObject;
_obj = ['Land_Bunker_01_small_F',_center,[-1.4,-15,0],_rotation,0] call _fnc_createObject;
_obj = ['Land_Bunker_01_big_F',_center,[-1.8,-0.6,0.7],_rotation,181] call _fnc_createObject;
_obj = ['Land_BagBunker_Small_F',_center,[11.3,19,0],_rotation,1] call _fnc_createObject;
_obj = ['Land_BagBunker_Small_F',_center,[-12.9,18.4,0],_rotation,1] call _fnc_createObject;
_obj = ['Land_LampAirport_F',_center,[-11.4,9.6,0],_rotation,0] call _fnc_createObject;
_obj = ['Land_LampAirport_F',_center,[8.4,9.4,0],_rotation,0] call _fnc_createObject;
_obj = ['Land_Cargo_Patrol_V1_F',_center,[-0.8,17.5,0],_rotation,181] call _fnc_createObject;
_obj = ['Land_ConcreteHedgehog_01_F',_center,[17.8,-37,0],_rotation,61] call _fnc_createObject;
_obj = ['Land_ConcreteHedgehog_01_F',_center,[15.9,-38.8,0],_rotation,144] call _fnc_createObject;
_obj = ['Land_Bunker_01_tall_F',_center,[19,-21.4,0],_rotation,315] call _fnc_createObject;
_obj = ['Land_ConcreteHedgehog_01_F',_center,[21.1,-33.6,0],_rotation,318] call _fnc_createObject;
_obj = ['Land_ConcreteHedgehog_01_F',_center,[22.6,-31.8,0],_rotation,330] call _fnc_createObject;
_obj = ['Land_ConcreteHedgehog_01_F',_center,[24.4,-27.1,0],_rotation,55] call _fnc_createObject;
_obj = ['Land_ConcreteHedgehog_01_F',_center,[23.8,-29.6,0],_rotation,141] call _fnc_createObject;
_obj = ['Land_ConcreteHedgehog_01_F',_center,[19.7,-35.5,0],_rotation,97] call _fnc_createObject;
_obj = ['Land_Razorwire_F',_center,[20.3,-30.8,0],_rotation,311] call _fnc_createObject;
_obj = ['Land_Bunker_01_tall_F',_center,[18.2,16.7,0],_rotation,224] call _fnc_createObject;
_obj = ['Land_Cargo_Patrol_V1_F',_center,[19.4,-2.1,0],_rotation,270] call _fnc_createObject;

_obj = ['Land_DataTerminal_01_F',_center,[-6.3,3.6,0.8],_rotation,271] call _fnc_createObject;
_obj allowDamage false;
_obj setVariable ["A3E_isTerminal",true,true];
[_obj,"green","green","green"] call BIS_fnc_DataTerminalColor;

_obj = ['Box_NATO_WpsLaunch_F',_center,[-1,4.5,0.8],_rotation,0] call _fnc_createObject;
_obj allowDamage false;
_obj = ['Box_NATO_WpsLaunch_F',_center,[-2.9,4.5,0.8],_rotation,360] call _fnc_createObject;
_obj allowDamage false;
_obj = ['CargoNet_01_box_F',_center,[-2.8,2.4,0.8],_rotation,360] call _fnc_createObject;
_obj allowDamage false;
_obj = ['CargoNet_01_box_F',_center,[-0.7,2.3,0.8],_rotation,360] call _fnc_createObject;
_obj allowDamage false;

//固定武器
_MGGMH = a3e_arr_Escape_SWC_MG_H + a3e_arr_Escape_SWC_GM_H;
_gun = selectRandom _MGGMH;
_obj = [_gun,_center,[-21.7,-1.3,4.3],_rotation,270] call _fnc_createObject;
Escape_allStatics pushback _obj;
Escape_all_assets pushback _obj;
_obj setVariable ["Escape_assets_control", true, true];
_gun = selectRandom _MGGMH;
_obj = [_gun,_center,[12.2,-28.7,0],_rotation,146] call _fnc_createObject;
Escape_allStatics pushback _obj;
Escape_all_assets pushback _obj;
_obj setVariable ["Escape_assets_control", true, true];
_gun = selectRandom _MGGMH;
_obj = [_gun,_center,[-14.5,-28.7,0],_rotation,230] call _fnc_createObject;
Escape_allStatics pushback _obj;
Escape_all_assets pushback _obj;
_obj setVariable ["Escape_assets_control", true, true];
_gun = selectRandom _MGGMH;
_obj = [_gun,_center,[0.6,19,4.3],_rotation,360] call _fnc_createObject;
Escape_allStatics pushback _obj;
Escape_all_assets pushback _obj;
_obj setVariable ["Escape_assets_control", true, true];
_gun = selectRandom _MGGMH;
_obj = [_gun,_center,[11.2,18.4,0],_rotation,181] call _fnc_createObject;
Escape_allStatics pushback _obj;
Escape_all_assets pushback _obj;
_obj setVariable ["Escape_assets_control", true, true];
_gun = selectRandom _MGGMH;
_obj = [_gun,_center,[-13.6,18.7,0],_rotation,190] call _fnc_createObject;
Escape_allStatics pushback _obj;
Escape_all_assets pushback _obj;
_obj setVariable ["Escape_assets_control", true, true];
_gun = selectRandom _MGGMH;
_obj = [_gun,_center,[20.9,-3.4,4.3],_rotation,89] call _fnc_createObject;
Escape_allStatics pushback _obj;
Escape_all_assets pushback _obj;
_obj setVariable ["Escape_assets_control", true, true];
_gun = selectRandom _MGGMH;
_obj = [_gun,_center,[-21.5,-3.8,4.3],_rotation,270] call _fnc_createObject;
Escape_allStatics pushback _obj;
Escape_all_assets pushback _obj;
_obj setVariable ["Escape_assets_control", true, true];
_gun = selectRandom _MGGMH;
_obj = [_gun,_center,[-1.9,18.9,4.3],_rotation,0] call _fnc_createObject;
Escape_allStatics pushback _obj;
Escape_all_assets pushback _obj;
_obj setVariable ["Escape_assets_control", true, true];
_gun = selectRandom _MGGMH;
_obj = [_gun,_center,[20.7,-0.9,4.3],_rotation,89] call _fnc_createObject;
Escape_allStatics pushback _obj;
Escape_all_assets pushback _obj;
_obj setVariable ["Escape_assets_control", true, true];

_MGGM = a3e_arr_Escape_SWC_MG + a3e_arr_Escape_SWC_GM;
_gun = selectRandom _MGGM;
_obj = [_gun,_center,[12.4,-28.7,2.1],_rotation,143] call _fnc_createObject;
Escape_allStatics pushback _obj;
Escape_all_assets pushback _obj;
_obj setVariable ["Escape_assets_control", true, true];
_gun = selectRandom _MGGM;
_obj = [_gun,_center,[-14.5,-28.9,2.1],_rotation,228] call _fnc_createObject;
Escape_allStatics pushback _obj;
Escape_all_assets pushback _obj;
_obj setVariable ["Escape_assets_control", true, true];

_MGA = a3e_arr_Escape_SWC_MG_A;
_gun = selectRandom _MGA;
_obj = [_gun,_center,[8.5,6.2,0.1],_rotation,294] call _fnc_createObject;
Escape_allStatics pushback _obj;
_gun = selectRandom _MGA;
_obj = [_gun,_center,[-11.1,4.3,0.1],_rotation,44] call _fnc_createObject;
Escape_allStatics pushback _obj;
_gun = selectRandom _MGA;
_obj = [_gun,_center,[21.6,-17.5,0.1],_rotation,338] call _fnc_createObject;
Escape_allStatics pushback _obj;
_gun = selectRandom _MGA;
_obj = [_gun,_center,[20,10.9,0.1],_rotation,224] call _fnc_createObject;
Escape_allStatics pushback _obj;
_gun = selectRandom _MGA;
_obj = [_gun,_center,[-22.1,-17.9,0.1],_rotation,27] call _fnc_createObject;
Escape_allStatics pushback _obj;
_gun = selectRandom _MGA;
_obj = [_gun,_center,[-22.4,13.5,0.1],_rotation,164] call _fnc_createObject;
Escape_allStatics pushback _obj;

_gun = selectRandom a3e_arr_MortarSite;
_obj = [_gun,_center,[7,-9,0],_rotation,360] call _fnc_createObject;
[_obj,A3E_VAR_Side_Opfor] spawn A3E_fnc_AddStaticGunner;
Escape_all_assets pushback _obj;
a3e_var_artillery_units pushBack _obj;
_obj setVariable ["Escape_assets_control", true, true];
_gun = selectRandom a3e_arr_MortarSite;
_obj = [_gun,_center,[-3.1,-8.9,0],_rotation,0] call _fnc_createObject;
[_obj,A3E_VAR_Side_Opfor] spawn A3E_fnc_AddStaticGunner;
Escape_all_assets pushback _obj;
a3e_var_artillery_units pushBack _obj;
_obj setVariable ["Escape_assets_control", true, true];
_gun = selectRandom a3e_arr_MortarSite;
_obj = [_gun,_center,[-6.9,-8.7,0],_rotation,0] call _fnc_createObject;
[_obj,A3E_VAR_Side_Opfor] spawn A3E_fnc_AddStaticGunner;
Escape_all_assets pushback _obj;
a3e_var_artillery_units pushBack _obj;
_obj setVariable ["Escape_assets_control", true, true];
_gun = selectRandom a3e_arr_MortarSite;
_obj = [_gun,_center,[-1.2,-14.7,4.3],_rotation,360] call _fnc_createObject;
[_obj,A3E_VAR_Side_Opfor] spawn A3E_fnc_AddStaticGunner;
Escape_all_assets pushback _obj;
a3e_var_artillery_units pushBack _obj;
_obj setVariable ["Escape_assets_control", true, true];
_gun = selectRandom a3e_arr_MortarSite;
_obj = [_gun,_center,[0.3,-9,0],_rotation,360] call _fnc_createObject;
[_obj,A3E_VAR_Side_Opfor] spawn A3E_fnc_AddStaticGunner;
Escape_all_assets pushback _obj;
a3e_var_artillery_units pushBack _obj;
_obj setVariable ["Escape_assets_control", true, true];
_gun = selectRandom a3e_arr_MortarSite;
_obj = [_gun,_center,[3.8,-9,0],_rotation,360] call _fnc_createObject;
[_obj,A3E_VAR_Side_Opfor] spawn A3E_fnc_AddStaticGunner;
Escape_all_assets pushback _obj;
a3e_var_artillery_units pushBack _obj;
_obj setVariable ["Escape_assets_control", true, true];

_obj = ['B_AAA_System_01_F',_center,[18.3,16.7,8.2],_rotation,45] call _fnc_createObject; //近防炮
_obj setMass 99999;
createVehicleCrew _obj; //
if (side _obj != A3E_VAR_Side_Opfor) then {_grp = createGroup [A3E_VAR_Side_Opfor, true]; (units _obj) joinSilent _grp}; //
_obj addWeaponGlobal "Gatling_30mm_Plane_CAS_01_F"; //a164机炮
_obj addMagazineGlobal "1000Rnd_Gatling_30mm_Plane_CAS_01_F";
_obj addMagazineGlobal "1000Rnd_Gatling_30mm_Plane_CAS_01_F";
_obj addMagazineGlobal "1000Rnd_Gatling_30mm_Plane_CAS_01_F";
_obj addMagazineGlobal "1000Rnd_Gatling_30mm_Plane_CAS_01_F";
_obj addMagazineGlobal "1000Rnd_Gatling_30mm_Plane_CAS_01_F";
_obj = ['B_AAA_System_01_F',_center,[18.9,-21.8,8.2],_rotation,138] call _fnc_createObject;
_obj setMass 99999;
createVehicleCrew _obj;
if (side _obj != A3E_VAR_Side_Opfor) then {_grp = createGroup [A3E_VAR_Side_Opfor, true]; (units _obj) joinSilent _grp};
_obj addWeaponGlobal "Gatling_30mm_Plane_CAS_01_F";
_obj addMagazineGlobal "1000Rnd_Gatling_30mm_Plane_CAS_01_F";
_obj addMagazineGlobal "1000Rnd_Gatling_30mm_Plane_CAS_01_F";
_obj addMagazineGlobal "1000Rnd_Gatling_30mm_Plane_CAS_01_F";
_obj addMagazineGlobal "1000Rnd_Gatling_30mm_Plane_CAS_01_F";
_obj addMagazineGlobal "1000Rnd_Gatling_30mm_Plane_CAS_01_F";
_obj = ['B_AAA_System_01_F',_center,[-18.9,16.1,8.2],_rotation,315] call _fnc_createObject;
_obj setMass 99999;
createVehicleCrew _obj;
if (side _obj != A3E_VAR_Side_Opfor) then {_grp = createGroup [A3E_VAR_Side_Opfor, true]; (units _obj) joinSilent _grp};
_obj addWeaponGlobal "Gatling_30mm_Plane_CAS_01_F";
_obj addMagazineGlobal "1000Rnd_Gatling_30mm_Plane_CAS_01_F";
_obj addMagazineGlobal "1000Rnd_Gatling_30mm_Plane_CAS_01_F";
_obj addMagazineGlobal "1000Rnd_Gatling_30mm_Plane_CAS_01_F";
_obj addMagazineGlobal "1000Rnd_Gatling_30mm_Plane_CAS_01_F";
_obj addMagazineGlobal "1000Rnd_Gatling_30mm_Plane_CAS_01_F";
_obj = ['B_AAA_System_01_F',_center,[-18.9,-21,8.2],_rotation,224] call _fnc_createObject;
_obj setMass 99999;
createVehicleCrew _obj;
if (side _obj != A3E_VAR_Side_Opfor) then {_grp = createGroup [A3E_VAR_Side_Opfor, true]; (units _obj) joinSilent _grp};
_obj addWeaponGlobal "Gatling_30mm_Plane_CAS_01_F";
_obj addMagazineGlobal "1000Rnd_Gatling_30mm_Plane_CAS_01_F";
_obj addMagazineGlobal "1000Rnd_Gatling_30mm_Plane_CAS_01_F";
_obj addMagazineGlobal "1000Rnd_Gatling_30mm_Plane_CAS_01_F";
_obj addMagazineGlobal "1000Rnd_Gatling_30mm_Plane_CAS_01_F";
_obj addMagazineGlobal "1000Rnd_Gatling_30mm_Plane_CAS_01_F";

_obj = ['B_SAM_System_02_F',_center,[-7.5,-27,4.2],_rotation,180] call _fnc_createObject;
_obj setMass 99999;
createVehicleCrew _obj;
if (side _obj != A3E_VAR_Side_Opfor) then {_grp = createGroup [A3E_VAR_Side_Opfor, true]; (units _obj) joinSilent _grp};
_obj = ['B_SAM_System_02_F',_center,[5.3,-27.4,4.2],_rotation,180] call _fnc_createObject;
_obj setMass 99999;
createVehicleCrew _obj;
if (side _obj != A3E_VAR_Side_Opfor) then {_grp = createGroup [A3E_VAR_Side_Opfor, true]; (units _obj) joinSilent _grp};

_obj = ['B_SAM_System_01_F',_center,[-1.6,1.4,4],_rotation,0] call _fnc_createObject; //'B_Ship_MRLS_01_F'
_obj setMass 99999;
createVehicleCrew _obj;
if (side _obj != A3E_VAR_Side_Opfor) then {_grp = createGroup [A3E_VAR_Side_Opfor, true]; (units _obj) joinSilent _grp};

//veh
_parkedVehicleClasses append ["C_Heli_Light_01_civil_F","B_Heli_Light_01_F","I_Heli_light_03_unarmed_F"]; //
_veh = selectRandom _parkedVehicleClasses;
_obj = [_veh,_center,[-30.5,-12.9,0],_rotation,180] call _fnc_createObject;
Escape_all_assets pushback _obj;
_obj setVariable ["Escape_assets_control", true, true];
_veh = selectRandom _parkedVehicleClasses;
_obj = [_veh,_center,[29.3,-14.2,0],_rotation,180] call _fnc_createObject;
Escape_all_assets pushback _obj;
_obj setVariable ["Escape_assets_control", true, true];

Escape_campType_arr pushback [_center,"信号站","神曲"];
publicVariable "Escape_campType_arr";


